import OSS from 'ali-oss'

export function put (name, File) {
    try {
            const client = new OSS({
                region: 'oss-cn-shenzhen',
                // endpoint: "",
                accessKeyId: 'LTAI5tMpQnpYfG2j4JtcaoU2',
                accessKeySecret: 'msej2J1jd82MQLzsmqRaMXylgQxQUa',
                bucket: 'rsms-golxen'
                // stsToken: stsInfo.securityToken
            })
            // return client.put(stsInfo.dir + name, File)
            return client.put(name, File)
        // })
    } catch (e) {
        console.log(e)
    }
}
